package com.rin.service;

import com.rin.constant.OperationEnum;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author RinMi
 * @since 2023/6/13
 */

@Service
public class DeleteService extends BaseService {

    public void delete(Object entity, String entityId) {
        updateIdList(entity, entityId, OperationEnum.DELETE.ordinal());
    }

    public void deleteBatch(Object entity, List<String> idList) {
        updateIdList(entity, idList, OperationEnum.DELETE.ordinal());
    }

}
